package com.seven.springcloud.lb;

import org.springframework.cloud.client.ServiceInstance;

import java.util.List;

/**
 * 自定义负载均衡器
 **/

public interface LoadBalancer {
    /**
     * 获取service列表
     * @param serviceInstances
     * @return
     */
    ServiceInstance INSTANCE(List<ServiceInstance> serviceInstances);
}
